package com.un10.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.un10.entity.Odersdentails;
import com.un10.entity.Orders;
import com.un10.mapper.OrdersMapper;
import com.un10.service.OrdersService;
@Service
public class OrdersServiceImpl  implements OrdersService{
@Autowired 
public  OrdersMapper  ordersMapper;
	
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return ordersMapper.getCount();
	}

	@Override
	public List<Orders> findAllOrders(int page, int limit,String orderStatus) {
		// TODO Auto-generated method stub
		return ordersMapper.getAllOrders(page, limit,orderStatus);
	}

	/*
	 * @Override public Integer findOrdersAdd(Map<String, Object> map) { // TODO
	 * Auto-generated method stub return ordersMapper.OrdersAdd(map); }
	 * 
	 * @Override public Integer findOrdersUpdate(Map<String, Object> map) { // TODO
	 * Auto-generated method stub return ordersMapper.OrdersUpdate(map); }
	 */
	@Override
	public Integer findOrdersDelete(Integer orderID) {
		// TODO Auto-generated method stub
		return ordersMapper.OrderssDelete(orderID);
	}

	@Override
	public Integer findOrdersUpdate(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ordersMapper.OrdersUpdate(map);
	}

	

	@Override
	public int getCountOrder() {
		// TODO Auto-generated method stub
		return ordersMapper.getCountOrder();
	}

	@Override
	public List<Odersdentails> findgetOdersdetailsAll(int page, int limit, Integer orderID) {
		// TODO Auto-generated method stub
		return ordersMapper.getOdersdetailsAll(page, limit, orderID);
	}

	

}
